<?php $this->pageTitle = Yii::app()->user->name; ?>
<div class="c_body">
	<div class="cat_head">
		<div class="cat_head_strip"></div>
		<a href="<?php echo Yii::app()->createUrl('albums/indexEvent', array('event'=>Yii::app()->request->getParam('event'))); ?>" class="cat_head_btn_r r_m">
			<div class="cat_head_btn_l">Альбомы</div>
		</a>
		<div class="cat_head_h">
			<p class="cat_head_h_txt">
				<span><?php echo $photos; ?></span> фотографии в 
				<span><?php echo $albums; ?></span> альбомах 
			</p>
		</div>
	</div>

	<div class="cat_list_block">
		<h1><?php echo $model->name; ?></h1>
		<div class="cat_list">
			<?php foreach ($model->photos as $key => $value) : ?>
				<a href="<?php echo Yii::app()->createUrl('albums/photoEvent', array('id'=>$value->id, 'event'=>Yii::app()->request->getParam('event')));?>" class="cat_list_item photoBg">
					<?php echo $this->material_image($value->id, $value->name, '200', 'events/'.$value->album->event->id.'/'.$value->album->id); ?>
				</a>
			<?php endforeach; ?>
		</div>
	</div>
	<div class="clear"></div>
</div>